<div class="mhead">
	<span>添加页面</span>
</div>

<div class="mcontent">
	<form id="data-form" action="page_add.php" method="post" class="form1">
	<table id="form-table" class="table1">
		<tr>
			<th>页面名称：</th>
			<td>
				<input id="name" name="name" type="text" size="50" maxlength="40" 
					class="{required:true, maxlength:40, messages:{required:'页面名称不能为空', maxlength:'页面英文名称不能超过40个字符'}}"/>
			</td>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<td><p class="note">页面名称不能为空，最多只能40个字符</p></td>
		</tr>
		<tr>
			<th>页面英文名称：</th>
			<td>
				<input id="english_name" name="english_name" type="text" size="50" maxlength="40" 
					class="{required:true, maxlength:40, messages:{required:'页面英文名称不能为空', maxlength:'页面英文名称不能超过40个字符'}}"/>
			</td>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<td><p class="note">页面英文名称不能为空，最多只能40个字符，不能与其它页面英文名称重复</p></td>
		</tr>
		<tr>
			<th>内容：</th>
			<td>
				<div style="float:left;background:#ffffff;">
					<textarea id="content" name="content" rows="30" cols="140" class="{required:true, messages:{required:'文章内容不能为空'}}"></textarea>
				</div>
				<div class="clr"></div>
			</td>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<td><p class="note">内容不能为空</p></td>
		</tr>
		<tr>
			<th>页面标题：</th>
			<td>
				<input id="title" name="title" type="text" size="50" maxlength="100" 
					class="{required:true, maxlength:100, messages:{required:'页面标题不能为空', maxlength:'页面标题不能超过100个字符'}}"/>
			</td>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<td><p class="note">页面标题不能为空，最多只能100个字符</p></td>
		</tr>
		<tr>
			<th>网页关键字：</th>
			<td>
				<textarea id="keywords" name="keywords" rows="3" cols="80" 
					class="{required:true, maxlength:200, messages:{required:'网页关键字不能为空', maxlength:'网页关键字不能超过200个字符'}}"></textarea>
			</td>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<td><p class="note">网页关键字不能为空，不能超过200个字符，关键字之间使用逗号（，）隔开</p></td>
		</tr>
		<tr>
			<th>网页描述：</th>
			<td>
				<textarea id="description" name="description" rows="5" cols="80" 
					class="{required:true, maxlength:2000, messages:{required:'网页描述不能为空', maxlength:'网页描述不能超过2000个字符'}}"></textarea>
			</td>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<td><p class="note">网页描述不能为空，摘要出网页的主要内容，不能超过2000个字符</p></td>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<td>
				<input type="hidden" name="action" value="add" />
				<input id="add-article" type="submit" value="提交" />
			</td>
		</tr>
	</table>	
	</form>
	
	<div class="blank3"></div>
</div>

<link rel="stylesheet" type="text/css" href="zonge-ui/components/validate/css/cmxform.css" />
<script type="text/javascript" src="zonge-ui/components/validate/jquery.validate.pack.js"></script>
<script type="text/javascript" src="zonge-ui/jquery.metadata.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$('#form-table').striped();	
	$("#data-form").validate();
	$("#add-article").click(function(){
		$("#content").val( $(".nicEdit-main").html() );
		$("#data-form").submit();
	});
}); 	
</script>

<script type="text/javascript" src="http://source.zongetech.com/nicedit/nicEdit.js"></script>
<script type="text/javascript">
bkLib.onDomLoaded(function() { 
	new nicEditor({
		fullPanel : true
	}).panelInstance('content');
});		
</script>